package com.zy.convert.converter;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author hassan
 * @date 2020-02-24 23:44
 * 示例 converter注解
 */
@Documented
@Target({ElementType.FIELD})
@Retention(RUNTIME)
@Transform(converter = Field2FieldConverter.class)
public @interface Field2Field {

    /**
     * 源属性
     */
    String sourceField();

}
